package com.example.demo.consumer;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

import java.util.Arrays;

/**
 * @author Song Yinghui
 * @date 2019/12/6
 * @Version 1.0
 */

@RabbitListener(queues = {"firstQueue","firstQueue1"},group = "group2")
@Component
public class ConsumerTest3 {

    @RabbitHandler
    public void receiveTest(String msg){
        System.out.println("ConsumerTest3 接收到的消息：" + msg);
    }
}
